package com.nbsaas.boot.manufacturing.rest.convert;

import com.nbsaas.boot.manufacturing.data.entity.BillOfMaterial;
import com.nbsaas.boot.manufacturing.api.domain.simple.BillOfMaterialSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 物料清单-列表对象转换器
*/

public class BillOfMaterialSimpleConvert implements Converter<BillOfMaterialSimple, BillOfMaterial> {




@Override
public BillOfMaterialSimple convert(BillOfMaterial source) {
    BillOfMaterialSimple result = new BillOfMaterialSimple();

                result.setNote(source.getNote());
                result.setProductSkuId(source.getProductSkuId());
                result.setAuditOpinion(source.getAuditOpinion());
                result.setProductId(source.getProductId());
                result.setAuditor(source.getAuditor());
                result.setDescription(source.getDescription());
                result.setVersion(source.getVersion());
                result.setAddDate(source.getAddDate());
                result.setBomType(source.getBomType());
                result.setStandardCost(source.getStandardCost());
                result.setExpiryDate(source.getExpiryDate());
                result.setIsDefault(source.getIsDefault());
                result.setAuditTime(source.getAuditTime());
                result.setBomNo(source.getBomNo());
                result.setName(source.getName());
                result.setAuditStatus(source.getAuditStatus());
                result.setId(source.getId());
                result.setEffectiveDate(source.getEffectiveDate());
                result.setStatus(source.getStatus());
                result.setLastDate(source.getLastDate());


    return result;
}

}